extend layout

block meta
    title G3D - A pure WebGL-compatible 3D render engine, works without DOM API
    link(rel="icon" href=root+"assets/favicon-g3d.png" type="image/x-icon")
    link(rel="stylesheet" href=root+"index.css")
    link(rel="stylesheet" href="//cdn.jsdelivr.net/gh/highlightjs/cdn-release@9.12.0/build/styles/vs.min.css")

block main
    .g3d
        .doc
            .content
                .index
                    ol
                        - for (name in index)
                            - if(typeof index[name] === 'string')
                                li.item
                                    if(langcn && indexcn && indexcn[name])
                                        a(href="./"+name.split(' ').join('-')+".html")= indexcn[name]
                                    else
                                        a(href="./"+name.split(' ').join('-')+".html")= name
                            - else
                                li.item
                                    .item-title= name
                                    ol
                                        -for (subname in index[name])
                                            li.item
                                                a(href="./"+subname+".html")= subname
                .body!= content